package newEmployee;

import java.util.Comparator;

public class BirthdayComparator implements Comparator<Employee> {
	public int compare(Employee e1,Employee e2){
		if(e1.equals(e2)){
			return 0;
		}else if(e1.getBirth().getTime()>e2.getBirth().getTime()){
			return -1;
		}else{
			return 1;
		}
	}
}
